Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

230
Views
"about:addons": why does Firefox call twice a browser.webNavigation.onBeforeNavigate'listener?

I wrote a very simple web extension for Firefox (92.0 on Windows 10).

manifest.json:

{
    "manifest_version": 2,
    "name": "Sandbox",
    "version": "1.0.0",
    "description": "my sandbox for a Firefox WebExtension",

    "icons": {
        "16": "icons/dlwatch16.png",
        "32": "icons/dlwatch32.png"
    },
    "background": {
        "scripts":  [ "script.js" ]
    },
    "permissions": [ "<all_urls>", "webNavigation"]
}

script.js:

browser.webNavigation.onBeforeNavigate.addListener((details) => {
    console.log(`browser.webNavigation.onBeforeNavigate.listener: details: ${JSON.stringify(details)}`);
});

I start Firefox for a test with "web-ext run -v" that starts a Firefox window. I open the console of Firefox with the menu of the window. When entering https://www.mozilla.org as the URL if the tab, I get in the console:

browser.webNavigation.onBeforeNavigate.listener: details: {"url":"https://www.mozilla.org/","timeStamp":1632494436204,"frameId":0,"parentFrameId":-1,"tabId":1,"windowId":3}

But with the URL "about:addons", The result in the console is:

browser.webNavigation.onBeforeNavigate.listener: details: {"url":"about:addons","timeStamp":1632494444353,"frameId":0,"parentFrameId":-1,"tabId":1,"windowId":3} script.js:2:10 browser.webNavigation.onBeforeNavigate.listener: details: {"url":"about:addons","timeStamp":1632494444416,"frameId":0,"parentFrameId":-1,"tabId":1,"windowId":3} script.js:2:10

Does someone know why the listener is called twice for about:addons ?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

New bug report fulfilled in Bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1732564

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!